package com.ysd.lis.controller.qc;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.CommonPageDto;
import com.ysd.lis.request.qc.QcMaterialFixedDto;
import com.ysd.lis.service.qc.QcMaterialItemFixedService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 员工表
 * 前端控制器
 * </p>
 *
 * @author pengrongshuai
 * @since 2023-12-26
 */
@Api(tags = "质控品项目")
@RestController
@RequestMapping("/api/qc/qcMaterialItemFixed")
public class QcMaterialItemFixedController extends BaseController {

    @Autowired
    QcMaterialItemFixedService qcMaterialItemFixedService;

    @ApiOperation("查询")
    @GetMapping("/findMaterialFixedList")
    public Result findMaterialFixedList(CommonPageDto pageParam){
        return qcMaterialItemFixedService.findMaterialFixedList(pageParam);
    }

    @ApiOperation("修改")
    @PostMapping("/saveOrUpdateMaterialFixed")
    public Result saveOrUpdateMaterialFixed(@RequestBody QcMaterialFixedDto item) {
        return qcMaterialItemFixedService.saveOrUpdateMaterialFixed(item);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteMaterialFixedList")
    public Result batchDeleteMaterialFixedList(@RequestBody QcMaterialFixedDto dto){
        return  qcMaterialItemFixedService.batchDeleteMaterialFixedList(dto);
    }

}
